//
//  LTM_PopBaseBgView.m
//  LTM_Inherit_PopView_Objc
//
//  Created by 柯南 on 2021/11/25.
//

#import "LTM_PopBaseBgView.h"
#import <Masonry/Masonry.h>

@interface LTM_PopBaseBgView ()
/// 弹框内容父视图
@property (nonatomic, strong) UIView *popBgView;
@end

@implementation LTM_PopBaseBgView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:[UIScreen mainScreen].bounds];
    
    if (self) {
        [self addSubview:self.popBgView];
        [self.popBgView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.bottom.left.right.equalTo(self);
        }];
        self.popBgView.layer.cornerRadius = 15;
        self.popBgView.layer.maskedCorners = kCALayerMinXMinYCorner | kCALayerMaxXMinYCorner;
    }
    return self;
}

//MARK: UILazy
- (UIView *)popBgView{
    if (!_popBgView) {
        _popBgView = [[UIView alloc] init];
    }
    
    return _popBgView;
}

@end
